The Automation Gateway API is documented with an interactive "try it out" UI within Automation Gateway. Users can execute operations against modules, roles, and playbooks that Automation Gateway oversees, or onboard and delete devices.
Add a New Device
Devices managed by Automation Gateway (i.e. "internal" mode) are manipulated and managed via API.
- Navigate to the API Documentation (see the Version Information, API Documentation & Logout section above).
- Click the appropriate Automation Gateway API method. For example, select
POST /devices
to add a new device. - Click Try it out!.
- Edit the definition values to reflect the added device.
- Click Execute to run the call. Click Cancel to exit;changes will not be saved.
- The following information displays below the Responses header.
- Curl command that could be run to achieve the same result.
- Request URL is the actual REST call made to the server.
- Server response from the executed call.
- All possible response codes for the API call.
Remove a Device
- Go to the Devices family (left navigation menu) to see the new device that was added in the example above.
- Go to the API Documentation and select
DELETE /devices/{device_name}
to remove the added device. - Click Try it out!.
- Enter the name of the device to be removed.
- Click Execute.
Add a New Playbook
Once a new playbook is added to Ansible, it can be added to Automation Gateway.
- Navigate to API Documentation.
- Find and expand the POST /playbooks/refresh.
- Click Try it out!
- Click Execute to re-sync the playbooks.
- Verify the response code. Response Code 200 indicates the retrieval was successful.
- Go back to the Playbooks section of Automation Gateway to view the newly added playbook.
Add a New Role
New roles must be added to Ansible first before they can be synchronized and viewed by Automation Gateway.
- Navigate to API Documentation.
- Find and expand the
POST /roles/refresh
. - Click Try it out!
- Click Execute to refresh the cache and re-sync the roles with Ansible.
- Verify the response. Response Code 200 indicates the refresh was successful.
- Go back to the Roles section of Automation Gateway to view and use the new roles.